﻿using CTM.Web.Utils;
using System;
using System.ComponentModel.DataAnnotations;

namespace CTM.Web.Models.Input
{
    public class Notification
    {
        #region Properties

        [Key]
        public Guid Id { get; set; }

        public NotificationType Type { get; set; }

        public bool IsDeleted { get; set; }

        public DateTime CreatedOn { get; set; }

        [StringLength(128)]
        public string CreatedBy { get; set; }

        #endregion

        #region Relationship

        public virtual Post Post { get; set; }
        public virtual Comment Comment { get; set; }
        public virtual ApplicationUser Giver { get; set; }
        public virtual ApplicationUser Receiver { get; set; }

        #endregion

        public Notification()
        {
            IsDeleted = false;
            CreatedOn = DateTime.UtcNow;
        }
    }
}